<script setup>
import { ref } from 'vue'
import {useCounterStore} from "@/stores/counter";

const counterStore = useCounterStore()

</script>

<template>
    <div>
      <button @click="counterStore.count = 0">点击它会重置为 0</button>
      <button @click="counterStore.increment">点击它 会 + 1</button>
      <span>{{counterStore.count}}</span>
      <button @click="counterStore.decrement">点击它会 - 1</button>
    </div>
</template>

<style scoped>

</style>